package com.gloaba.common.feign.exception;


/**
 * 远程调用异常类
 *
 * @author : Zane
 * @date : 2022-2-26
 */
public class RemoteException extends RuntimeException {
    private final String errorCode;

    public RemoteException(String message, String errorCode, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public RemoteException(String message, String errorCode) {
        this(message, errorCode, (Throwable) null);
    }


    public String getErrorCode() {
        return errorCode;
    }
}
